package cn.icatw.gulimall.ware.feign;

import cn.icatw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author icatw
 * @date 2022/3/29
 * @email 762188827@qq.com
 * @apiNote
 */
@FeignClient("gulimall-order")
public interface OrderFeignService {

    /**
     * 得到订单状态
     *
     * @param orderSn 订单sn
     * @return {@link R}
     */
    @GetMapping("order/order/status/{orderSn}")
    R getOrderStatus(@PathVariable("orderSn") String orderSn);
}
